package com.yunkeji.system.domain.bo;

import com.yunkeji.common.core.validate.AddGroup;
import com.yunkeji.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import com.yunkeji.common.core.domain.BaseEntity;

/**
 * 动态业务对象 ykj_moments
 *
 * @author zhang
 * @date 2024-07-10
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MomentsBo extends BaseEntity {

    /**
     * 自增主键
     */
    @NotNull(message = "自增主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 图片
     */
    @NotBlank(message = "图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pics;

    /**
     * 点赞数
     */
    @NotNull(message = "点赞数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long likeNum;

    /**
     * 回复数
     */
    @NotNull(message = "回复数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long replyNum;

    /**
     * 发布精度
     */
    @NotNull(message = "发布精度不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal longitude;

    /**
     * 发布纬度
     */
    @NotNull(message = "发布纬度不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal latitude;

    /**
     * 发布城市ID
     */
    @NotNull(message = "发布城市ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long cityId;

    /**
     * 发布省份id
     */
    @NotNull(message = "发布省份id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long provinceId;

    private Integer status;

}
